package com.sky.service.impl;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.ObjUtil;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sky.constant.MessageConstant;
import com.sky.dto.OrdersSubmitDTO;
import com.sky.exception.AddressBookBusinessException;
import com.sky.exception.ShoppingCartBusinessException;
import com.sky.mapper.OrderMapper;
import com.sky.mapper.ShoppingCartMapper;
import com.sky.po.AddressBookPO;
import com.sky.po.OrderDetailPO;
import com.sky.po.OrdersPO;
import com.sky.po.ShoppingCartPO;
import com.sky.repository.OrderDetailRepository;
import com.sky.repository.OrderRepository;
import com.sky.service.AddressBookService;
import com.sky.service.OrderDetailService;
import com.sky.service.OrderService;
import com.sky.service.ShoppingCartService;
import com.sky.vo.OrderSubmitVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Content:
 * @Author: Asen
 * @Date: 2023/9/11 15:38
 */
@Service
public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailRepository,OrderDetailPO> implements OrderDetailService {

    @Override
    @Transactional
    public void insertBatch(List<OrderDetailPO> source) {
        this.saveBatch(source);
    }
}
